.class public Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "FileProcessAdapter.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
        ">;"
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field private b:Z

.field private c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 1

    .line 1
    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->b:Z

    .line 3
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->c:Ljava/util/List;

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->a:Landroid/content/Context;

    .line 5
    iput-boolean p2, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->b:Z

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;)Landroid/content/Context;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 4

    .line 4
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->k1()Z

    move-result v0

    .line 5
    new-instance v1, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter$b;

    invoke-direct {v1, p0, v0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter$b;-><init>(Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;Z)V

    .line 6
    new-instance v0, Lcom/estrongs/android/widget/c;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->a:Landroid/content/Context;

    check-cast v2, Landroid/app/Activity;

    const/4 v3, 0x7

    invoke-direct {v0, v2, p1, v1, v3}, Lcom/estrongs/android/widget/c;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/estrongs/fs/h;I)V

    const/4 p1, 0x0

    .line 7
    invoke-virtual {v0, p1}, Lcom/estrongs/android/widget/c;->a(Z)V

    const/4 p1, 0x1

    .line 8
    invoke-virtual {v0, p1}, Lcom/estrongs/android/widget/c;->b(Z)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->a:Landroid/content/Context;

    const v1, 0x7f110299

    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    const/4 v1, 0x0

    invoke-virtual {v0, p1, v1}, Lcom/estrongs/android/widget/c;->c(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 10
    invoke-virtual {v0, v3}, Lcom/estrongs/android/widget/c;->a(I)V

    .line 11
    invoke-virtual {v0, v1}, Lcom/estrongs/android/widget/c;->a(Ljava/lang/CharSequence;)V

    .line 12
    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->j()V

    .line 13
    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->k()V

    .line 14
    new-instance p1, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter$c;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter$c;-><init>(Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;)V

    invoke-virtual {v0, p1}, Lcom/estrongs/android/widget/c;->a(Lcom/estrongs/android/view/FileGridViewWrapper$b0;)V

    .line 15
    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->n()V

    return-void
.end method


# virtual methods
.method public a(Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->c:Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {v0, v1, p1}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z

    return-void
.end method

.method public getItemCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->c:Ljava/util/List;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    :goto_0
    return v0
.end method

.method public onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->c:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/estrongs/fs/g;

    .line 2
    check-cast p1, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessViewHolder;

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->a:Landroid/content/Context;

    iget-boolean v1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->b:Z

    invoke-virtual {p1, v0, p2, v1}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessViewHolder;->a(Landroid/content/Context;Lcom/estrongs/fs/g;Z)V

    .line 4
    iget-object p1, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    new-instance v0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter$a;

    invoke-direct {v0, p0, p2}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter$a;-><init>(Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;Lcom/estrongs/fs/g;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 2

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessAdapter;->a:Landroid/content/Context;

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const p2, 0x7f0c0177

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-virtual {p1, p2, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 2
    new-instance p2, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessViewHolder;

    invoke-direct {p2, p1}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileProcessViewHolder;-><init>(Landroid/view/View;)V

    return-object p2
.end method
